package com.kxmall.web.controller.newtimes.service;

import com.kxmall.newtimes.domain.KxNewTimes;
import com.kxmall.newtimes.domain.vo.KxNewTimesVo;
import com.kxmall.newtimes.domain.bo.KxNewTimesBo;
import com.kxmall.common.core.page.TableDataInfo;
import com.kxmall.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 新鲜时报Service接口
 *
 * @author kxmall
 * @date 2023-10-05
 */
public interface IKxNewTimesService {

    /**
     * 查询新鲜时报
     */
    KxNewTimesVo queryById(Long id);

    /**
     * 查询新鲜时报列表
     */
    TableDataInfo<KxNewTimesVo> queryPageList(KxNewTimesBo bo, PageQuery pageQuery);

    /**
     * 查询新鲜时报列表
     */
    List<KxNewTimesVo> queryList(KxNewTimesBo bo);

    /**
     * 新增新鲜时报
     */
    Boolean insertByBo(KxNewTimesBo bo);

    /**
     * 修改新鲜时报
     */
    Boolean updateByBo(KxNewTimesBo bo);

    /**
     * 校验并批量删除新鲜时报信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
